#!/bin/sh
case "$1" in
  start)
    if is-tv-box; then
      nice babysit 60 nicknamer | logos nicknamer &
    fi
    ;;
  stop)
    pkillwait -x nicknamer
    ;;
  restart)
    $0 stop; $0 start
    ;;
  *)
    echo "Usage: $0 {start|stop|restart}"
    exit 1
esac
